package org.lvxiao.example.redis.lock;

public interface DistributionLock {

	String tryLock(String key, long msExpireTime);

	String lock(String key, long msExpireTime) throws InterruptedException;

	String lock(String key, long msExpireTime, long blockTime) throws InterruptedException;

	boolean unlock(String signature);

}
